{% macro gen_form(form) %}
{% import "_my_wtf_macros.html" as my_wtf_macros %}

    <form id="search-demand-form" action="{{ url_for('op_bp.demand_list_for_sem') }}" method="post" class="form" role="form">
        {{ my_wtf_macros.form_field(form.user_phone, div_col=4, label_col=4, field_col=7) }}
        {{ my_wtf_macros.form_field(form.id, div_col=4, label_col=4, field_col=7) }}
        {{ my_wtf_macros.form_field(form.uid, div_col=4, label_col=4, field_col=7) }}
        <div class="clearfix visible-xs-block visible-sm-block visible-md-block visible-lg-block"></div>
        {{ my_wtf_macros.form_field(form.sem_source, div_col=4, label_col=4, field_col=7) }}
        {{ my_wtf_macros.form_field(form.sem_plan, div_col=4, label_col=4, field_col=7) }}
        {{ my_wtf_macros.form_field(form.sem_unit, div_col=4, label_col=4, field_col=7) }}
        <div class="clearfix visible-xs-block visible-sm-block visible-md-block visible-lg-block"></div>
        {{ my_wtf_macros.form_field(form.sem_keyword, div_col=4, label_col=4, field_col=7) }}
        {{ my_wtf_macros.form_field(form.sem_phone_number, div_col=4, label_col=4, field_col=7) }}
        {{ my_wtf_macros.form_field(form.status, div_col=4, label_col=4, field_col=7) }}
        <div class="clearfix visible-xs-block visible-sm-block visible-md-block visible-lg-block"></div>
        {{ my_wtf_macros.form_field(form.source, div_col=4, label_col=4, field_col=7) }}
        {{ my_wtf_macros.form_field(form.created_at_begin, div_col=4, label_col=4, field_col=7) }}
        {{ my_wtf_macros.form_field(form.created_at_end, div_col=4, label_col=4, field_col=7) }}
        <div class="clearfix visible-xs-block visible-sm-block visible-md-block visible-lg-block"></div>
        {{ my_wtf_macros.form_field(form.published_at_begin, div_col=4, label_col=4, field_col=7) }}
        {{ my_wtf_macros.form_field(form.published_at_end, div_col=4, label_col=4, field_col=7) }}
        <div class="clearfix visible-xs-block visible-sm-block visible-md-block visible-lg-block"></div>
        <div class="pull-right btn-group">
            <button type="submit" class="btn btn-info"
                    id="query-demand-btn">
                查询
            </button>
        </div>
    </form>
{% endmacro %}
